package com.kly.sc.api.application.controller.system.response;

import com.kly.user.dto.SystemQaDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;

import java.io.Serializable;

@Data
@ApiModel("QA信息")
public class SystemQARsp implements Serializable {

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    public static SystemQARsp toRsp(SystemQaDto systemQaDto) {
        SystemQARsp systemQARsp = new SystemQARsp();
        systemQARsp.setTitle(systemQaDto.getTitle());
        systemQARsp.setContent(systemQaDto.getContent());
        return systemQARsp;
    }
}
